<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>Administration</title>		
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        #{get 'moreStyles' /}	
        <link rel="shortcut icon" type="image/png" href="@{'/public/images/favicon.png'}" />
        <script src="@{'/public/javascripts/jquery-1.3.2.min.js'}"></script>
        <script src="@{'/public/javascripts/jquery.tools.min.js'}"></script>
    </head>
    <body id="crud"> 
			  <div id="crudHeader"> 
					<h1><a href="/cpanel/"> 控制台</a></h1>
				</div> 
        <div id="main">
    			<ul id="adminMenu">
        		<li class="${request.controller == 'cpanel.Admin' ? 'selected' : ''}">
            	<a href="@{cpanel.Admin.index()}">首页</a>
        		</li>
            <li class="${request.controller == 'cpanel.Posts' ? 'selected' : ''}">
                <a href="@{cpanel.Posts.list()}">文章</a>
            </li>
            <li class="${request.controller == 'cpanel.Tags' ? 'selected' : ''}">
                <a href="@{cpanel.Tags.list()}">标签</a>
            </li>
            <li class="${request.controller == 'cpanel.Comments' ? 'selected' : ''}">
                <a href="@{cpanel.Comments.list()}">评论</a>
            </li>
            <li class="${request.controller == 'cpanel.Settings' ? 'selected' : ''}">
                <a href="@{cpanel.Settings.list()}">设置</a>
            </li>
    			</ul>
    
    			#{doLayout /} 
				</div>
        
        <p id="footer">
            Yabe is a (not so) powerful blog engine built with the 
            <a href="http://www.playframework.org">play framework</a>
            as a tutorial application.
        </p>
        
    </body>
</html>